import service from "@/utils/request.js"
/**
 * 添加文献
 */
export function literatureAdd(data = {}){
    return service.request({
        url: "/api/v1/literaturecreate",
        method: "post",
        data
    })
}

/**
 * 文献列表
 */
export function literaturelists(data = {}){
    return service.request({
        url: "/api/v1/literaturelists",
        method: "post",
        data
    })
}

/**
 * 更新文献
 */
export function literatureupdate(data = {}){
    return service.request({
        url: "/api/v1/literatureupdate",
        method: "post",
        data
    })
}

/**
 * 删除文献
 */
export function literaturedelete(data = {}){
    return service.request({
        url: "/api/v1/literaturedelete",
        method: "post",
        data
    })
}


/**
 * 文献状态更新
 */
export function literaturestatus(data = {}){
    return service.request({
        url: "/api/v1/literaturestatus",
        method: "post",
        data
    })
}

/**
 * 获取所有可用文献
 */
export function literatureall(data = {}){
    return service.request({
        url: "/api/v1/literatureall",
        method: "post",
        data
    })
}